package com.gsit.expenditure.controller; 

import java.net.URL;
import java.util.ResourceBundle;
import org.springframework.transaction.annotation.Transactional;

import com.gsit.expenditure.client.domina.FXMLBase;
import com.gsit.expenditure.utils.Page;
import com.gsit.expenditure.utils.ViewHandler;

import javafx.beans.value.ChangeListener;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.layout.StackPane;


public class SuccessController extends BaseController implements Initializable{

	@FXML
	private StackPane centerPane;
	
	MainAppController mainAppController;
	
	@Override
	public void initialize(URL arg0, ResourceBundle arg1) {
		// TODO Auto-generated method stub
	}
	
	
	
	@FXML
	@Transactional
	public void searchCustomer() {
			System.out.println(">>>>>>Search Customer>>>>>>>");
			stateChange.set(!stateChange.getValue());
					
			//final FXMLBase<MainAppController> fxmlBase =  ViewHandler.createFXMLBase(Page.SEARCH_CUSTOMER);
			//mainAppController.searchCustomer();
			//fxmlBase.getController().searchCustomer();
			//ViewHandler.createDialog(fxmlBase, "");
		//final FXMLBase<SuccessController> fxmlBase =  ViewHandler.createFXMLBase(Page.SUCCESS_MSG);
		}
		

	}


